import json


class ReadUtil:

    @classmethod
    def read_config(cls,file_path,key):
        with open(file_path,"r",encoding="utf-8") as f:
            data = json.load(f)
            json_data = data.get(key)
            list_data = list()
            for item in json_data:
                temp = tuple(item.values())
                list_data.append(temp)
        return list_data


if __name__ == '__main__':
    result = ReadUtil.read_config("../data/register_login_data.json","image_code")
    print(result)
